package org.firebug.spring.boot.web.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class User {
    public static User getInstance() {
        return new User(1L, "张晓东", 3.1415D, new Date());
    }

    public static List<User> getInstances() {
        List<User> users = new ArrayList<>(3);
        users.add(new User(1L, "张晓东", 3.1415D, new Date()));
        users.add(new User(2L, "袁文婷", 3.1415D, new Date()));
        return users;
    }

    private Long id;
    private String name;
    private Double salary;
    private Date birthday;

    public User() {
    }

    public User(Long id, String name, Double salary, Date birthday) {
        this.id = id;
        this.name = name;
        this.salary = salary;
        this.birthday = birthday;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
}
